{include file='common/flowheader' /}
<style>
    .thumbnail{
        pointer-events: all !important;
    }
    .content {
        padding: 15px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="">
    <div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('流程标题')}:</label>
        <div class="col-xs-12 col-sm-7">
            <label class="control-label"><strong>{$scheme->flowname}_{$instance->instancecode}</strong></label>
            {if $row.scansion != ''}
            <a href="{$row.scansion}">下载协议扫描件</a>
            {else}
            <a href="">未上传协议扫描件</a>
            {/if}
            <span class="msg-box n-right" for="c-scansion"></span>
            <ul class="row list-inline plupload-preview" id="p-scansion"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">申请人:</label>
        <div class="col-xs-12 col-sm-7">
            <label class="control-label"> {$originator->nickname}</label>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">协议名称:</label>
        <div class="col-xs-12 col-sm-7">
            <label class="control-label"> {$cname}</label>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('甲方')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input data-source="flow/cooperation/index" data-field="jiafang" class="form-control selectpage" name="row[partner_id]" type="text" value="{$row.partner_id}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('乙方')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input  data-source="flow/cooperation/index" data-field="partner" class="form-control selectpage" name="row[partner_id]" type="text" value="{$row.partner_id}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Year')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-year" class="form-control datetimepicker" data-date-format="YYYY" data-use-current="true" name="row[year]" type="text" value="{$row.year}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('往年合作事项执行落实情况')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-previous_year" class="form-control " rows="15" name="row[previous_year]" cols="50" disabled>{$row.previous_year|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('That_year')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-that_year" class="form-control " rows="15" name="row[that_year]" cols="50" disabled>{$row.that_year|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Next_step')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-next_step" class="form-control" rows="15" name="row[next_step]" cols="50" disabled>{$row.next_step|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Other')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-other" class="form-control" rows="15" name="row[other]" cols="50" disabled>{$row.other|htmlentities}</textarea>
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-3">{:__('Examinefile')}:</label>-->
<!--        <div class="col-xs-12 col-sm-7">-->
<!--            <div class="input-group">-->
<!--                <input id="c-examinefile" data-rule="" class="form-control" size="50" name="row[examinefile]" type="text" value="{$row.examinefile}" disabled>-->
<!--&lt;!&ndash;                <div class="input-group-addon no-border no-padding">&ndash;&gt;-->
<!--&lt;!&ndash;                    <span><button type="button" id="plupload-examinefile" class="btn btn-danger plupload" data-input-id="c-examinefile" data-multiple="false" data-preview-id="p-examinefile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>&ndash;&gt;-->
<!--&lt;!&ndash;                    <span><button type="button" id="fachoose-examinefile" class="btn btn-primary fachoose" data-input-id="c-examinefile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>&ndash;&gt;-->
<!--&lt;!&ndash;                </div>&ndash;&gt;-->
<!--                <span class="msg-box n-right" for="c-examinefile"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline plupload-preview" id="p-examinefile"></ul>-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Examinestatus')}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="radio" disabled="true">
                {foreach name="examinestatusList" item="vo"}
                <label for="row[examineStatus]-{$key}"><input id="row[examineStatus]-{$key}" name="row[examineStatus]" type="radio" value="{$key}" {in name="key" value="$row.examineStatus"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Opinion')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-opinion" class="form-control " rows="5" name="row[opinion]" cols="50" disabled>{$row.opinion|htmlentities}</textarea>
        </div>
    </div>
</div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">审批历史</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table table-striped">
                <thead>
                <tr>
                    <td>审批人</td>
                    <td>审批步骤</td>
                    <td>审批意见</td>
                    <td>附件</td>
                    <td>审批时间</td>
                </tr>
                </thead>
                <tbody>
                {volist name="history" id="vo" }
                <tr>
                    <td>{$vo.nickname}</td>
                    <td>{$vo.stepname}</td>
                    <td>{$vo.comment}</td>
                    <td>
                        {if condition="$vo.cfile neq '' "}

                        <a href='{$vo.cfile}'>下载</a>
                        {/if}
                    </td>
                    <td>{$vo.completedtime}</td>

                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </div>

    <div class="form-group layer-footer">
        <div class="col-xs-12 col-sm-12" style="text-align: center;">
            <button type="button" id='flowchart-show' data-insta class="btn btn-warning btn-embossed">{:__('流程图')}</button>
        </div>
    </div>

</form>